﻿@model BulletinModel.Feedback

@{
    ViewBag.Title = "DeleteCommentByID";
}
<script src="@Url.Content("~/Scripts/jquery-1.7.1.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/jquery.raty.js")" type="text/javascript"></script>
<script>
    $(document).ready((function () {
           $(".nonejscommentlist").hide();
    }))
 </script>
<h2>确定要删除吗？</h2>

    @Html.ValidationSummary(true)
<table>
    <tr>
         <th>
            项目编号
        </th>
        <th>
            评价内容
        </th>
        <th>
            星级
        </th>

  
    </tr>

@*    <tr>
        <td>
            @Html.DisplayFor(modelItem => modelItem.TextValue)
        </td>
        <td>
            @Html.DisplayFor(modelItem => modelItem.StarValue)
        </td>
        <td>
            @Html.DisplayFor(modelItem => modelItem.ProjectSN)
        </td>
    </tr>*@


     <tr>
        <td>
            @Html.DisplayFor(modelItem => modelItem.ProjectSN)
        </td>
        <td>
            @Html.DisplayFor(modelItem => modelItem.TextValue)
        </td>
        <td>
         <div class="nonejscommentlist">
             星级:
                 @for (int i = 1; i <= Model.StarValue; i++)
                     { 
                     <img src="../../Content/StarImg/star-on.png" />
                  }
                </div>
      <script type="text/javascript">
         $(function () {
             $('#star').raty(
               {
                path: "../../Content/StarImg",
                starHalf: 'star-half-big.png',
                readOnly: true,
                showHalf: true,
                score: '@Model.StarValue'
              }
              );
              })
                </script>
              星级：<div id="star"></div>
        </td>
    </tr> 
</table>
@using (Html.BeginForm("DeleteCommentByID", "Feedback"))
{
        @Html.Hidden("ProjectSN",ViewData["ProjectSN"])
        @Html.Hidden("BulletinID",ViewData["BulletinID"])
         @Html.Hidden("BulletinYaMa",ViewData["BulletinYaMa"])
        @Html.Hidden("YeMa",ViewData["YeMa"] )
        <input type="submit" value="删除" /> 
}
@*@Html.ActionLink("返回", "BulletinItem", new { projectSN =  ViewData["projectSN"], YeMa = ViewData["YeMa"], BulletinYaMa = ViewData["BulletinYaMa"] })*@
@Html.ActionLink("返回","giveComment", "BulletinItem", new { projectSN =  ViewData["projectSN"], YeMa = ViewData["YeMa"], BulletinYaMa = ViewData["BulletinYaMa"] },null)
